package com.lgq.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
public class Student {
	private int id;
	private String name;
	private boolean gender;
	private Date birthday;
	private String idCard;
	private Team team;
	private String dormitoryaddress;
	private String homeaddress;
	private String phone;
	private String qq;
	private String email;
	private String speciality;
	private String password;
	private String volid;
	private Date registtime;
	private double servetime;
	private String experience;
	private String reason;
	private String anamnesis;
	private Set<Projectselected>projectSelect=new HashSet<Projectselected>();
	@Id
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isGender() {
		return gender;
	}
	public void setGender(boolean gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	@ManyToOne
	@JoinColumn(name="team")
	public Team getTeam() {
		return team;
	}
	public void setTeam(Team team) {
		this.team = team;
	}
	public String getDormitoryaddress() {
		return dormitoryaddress;
	}
	public void setDormitoryaddress(String dormitoryaddress) {
		this.dormitoryaddress = dormitoryaddress;
	}
	public String getHomeaddress() {
		return homeaddress;
	}
	public void setHomeaddress(String homeaddress) {
		this.homeaddress = homeaddress;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSpeciality() {
		return speciality;
	}
	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getVolid() {
		return volid;
	}
	public void setVolid(String volid) {
		this.volid = volid;
	}
	public Date getRegisttime() {
		return registtime;
	}
	public void setRegisttime(Date registtime) {
		this.registtime = registtime;
	}
	public double getServetime() {
		return servetime;
	}
	public void setServetime(double servetime) {
		this.servetime = servetime;
	}
	public String getExperience() {
		return experience;
	}
	public void setExperience(String experience) {
		this.experience = experience;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public String getAnamnesis() {
		return anamnesis;
	}
	public void setAnamnesis(String anamnesis) {
		this.anamnesis = anamnesis;
	}
	@OneToMany(mappedBy="project")
	public Set<Projectselected> getProjectSelect() {
		return projectSelect;
	}
	public void setProjectSelect(Set<Projectselected> projectSelect) {
		this.projectSelect = projectSelect;
	}	
}
